//---------------------------------------------------------------------------

#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
#include <ImgList.hpp>
#include <ActnCtrls.hpp>
#include <ActnList.hpp>
#include <ActnMan.hpp>
#include <ActnMenus.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <DB.hpp>
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <IBCustomDataSet.hpp>
#include <IBQuery.hpp>
#include <DBCtrls.hpp>
#include <IBTable.hpp>
#include <AppEvnts.hpp>
#include <Graphics.hpp>
#include "class_TabCtrl.h"
#include <jpeg.hpp>
//---------------------------------------------------------------------------
class TMForm : public TForm
{
__published:	// IDE-managed Components
        TMainMenu *MainMenu1;
        TMenuItem *N1;
        TMenuItem *N2;
        TMenuItem *N3;
        TMenuItem *N4;
        TMenuItem *N5;
        TMenuItem *N6;
        TMenuItem *N7;
        TMenuItem *N8;
        TMenuItem *N9;
        TMenuItem *N10;
        TMenuItem *N11;
        TToolBar *ToolBar1;
        TPanel *Panel1;
        TStatusBar *StatusBar1;
        TTimer *Timer1;
        TLabel *Label1;
        TComboBox *ComboBox1;
        TDBGrid *DBGrid1;
        TIBQuery *Ask;
        TIBQuery *Det;
        TDataSource *DataSource1;
        TLabel *Label3;
        TEdit *Edit1;
        TApplicationEvents *ApplicationEvents1;
        TImage *iImage1;
        TButton *SpeedButton7;
        TButton *SpeedButton1;
        TButton *SpeedButton5;
        TButton *SpeedButton3;
        TButton *SpeedButton2;
        TButton *SpeedButton6;
        TBitBtn *SpeedButton9;
        TPanel *Panel2;
        TCheckBox *CheckBox1;
        TCheckBox *CheckBox2;
        TCheckBox *CheckBox3;
        TButton *Button1;
        TPanel *Image1;
        TLabel *Label2;
        TSpeedButton *OpenExcell;
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall SpeedButton6Click(TObject *Sender);
        void __fastcall StatusBar1Click(TObject *Sender);
        void __fastcall Timer1Timer(TObject *Sender);
        void __fastcall SpeedButton5Click(TObject *Sender);
        void __fastcall SpeedButton1Click(TObject *Sender);
        void __fastcall SpeedButton2Click(TObject *Sender);
        void __fastcall SpeedButton3Click(TObject *Sender);
        void __fastcall SpeedButton4Click(TObject *Sender);
        void __fastcall SpeedButton8Click(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall SpeedButton7Click(TObject *Sender);
        void __fastcall ComboBox1Change(TObject *Sender);
        void __fastcall SpeedButton9Click(TObject *Sender);
        void __fastcall Edit1Enter(TObject *Sender);
        void __fastcall ApplicationEvents1Message(tagMSG &Msg,
          bool &Handled);
        void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
        void __fastcall Edit1KeyPress(TObject *Sender, char &Key);
        void __fastcall CheckBox1Click(TObject *Sender);
        void __fastcall CheckBox2Click(TObject *Sender);
        void __fastcall Button1Click(TObject *Sender);
        void __fastcall FormMouseWheel(TObject *Sender, TShiftState Shift,
          int WheelDelta, TPoint &MousePos, bool &Handled);
        void __fastcall OpenExcellClick(TObject *Sender);
private:	// User declarations
        bool NeedReload;
        bool Work;
        bool Logined;
        TTabCtrl *Disp;
public:		// User declarations
        __fastcall TMForm(TComponent* Owner);
        void __fastcall ReloadData();
        void __fastcall ReloadGrid();

};
//---------------------------------------------------------------------------
extern PACKAGE TMForm *MForm;
//---------------------------------------------------------------------------
#endif
